/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ideastec.mipyme.model.paginaweb;

import com.ideastec.mipyme.model.EntidadPersistible;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 *
 * @author Diego Rafael Graf
 */

public class PaginaWeb extends EntidadPersistible{
    
     private String paginaweb;
     
     public PaginaWeb(){
     
     }
     
     public PaginaWeb(String paginaweb){
         this.paginaweb = paginaweb;
     }
     
     public String getPaginaweb(){
        return this.paginaweb;
     }
    
     public void setPaginaweb(String paginaweb){
        this.paginaweb = paginaweb;
     }
     
     @Override
     public String toString(){
        return this.paginaweb;
     }
     
     @Override
     public boolean equals(Object objeto){
         if(objeto == null || !objeto.getClass().isAssignableFrom(PaginaWeb.class)){
             return false;
         }else{
             PaginaWeb paginaweb2 = (PaginaWeb) objeto;
             return new EqualsBuilder().append(paginaweb2.toString(), this.toString()).isEquals();
         }
     }
    
     @Override
     public int hashCode(){
         return new HashCodeBuilder().append(this.toString()).append(this.toString()).toHashCode();
     }
    
}
